package cn.senjoeson.healthsport.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Generated;

/**
 * @author Android
 * @date 2018/1/2
 */
@Entity
public class StepData {

    // 指定自增，每个对象需要有一个主键
    @Id(autoincrement = true)
    private long id;
    @Property(nameInDb = "userid")
    private long userid;
    @Property(nameInDb = "today")
    private String today;
    @Property(nameInDb = "step")
    private String step;
    @Generated(hash = 387486871)
    public StepData(long id, long userid, String today, String step) {
        this.id = id;
        this.userid = userid;
        this.today = today;
        this.step = step;
    }
    @Generated(hash = 90761876)
    public StepData() {
    }
    public long getId() {
        return this.id;
    }
    public void setId(long id) {
        this.id = id;
    }
    public long getUserid() {
        return this.userid;
    }
    public void setUserid(long userid) {
        this.userid = userid;
    }
    public String getToday() {
        return this.today;
    }
    public void setToday(String today) {
        this.today = today;
    }
    public String getStep() {
        return this.step;
    }
    public void setStep(String step) {
        this.step = step;
    }

}
